# Contributor: omni <omni+alpine@hack.org>
# Maintainer: omni <omni+alpine@hack.org>
pkgname=py3-psycopg
pkgver=3.0.14
pkgrel=0
pkgdesc="PostgreSQL adapter for python"
options="!check" # Requires running database
url="http://initd.org/psycopg"
arch="all"
license="LGPL-2.0-or-later"
makedepends="libpq-dev python3-dev py3-setuptools"
source="https://files.pythonhosted.org/packages/source/p/psycopg/psycopg-$pkgver.tar.gz"
builddir="$srcdir/psycopg-$pkgver"

build() {
	python3 setup.py build
}

check() {
	make check
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="
9286cf57f1b2c14c00753f87e6696aa8ff1a709e42c72eb19e027dc496897182171b46da4fb909c44e89fbc08349f70da0e3bf06122111c4990555a118839c3c  psycopg-3.0.14.tar.gz
"
